package com.tencreat.domain.pt.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("app端品拼团商品列表")
public class ResPtGoodsListAppVO {
    @ApiModelProperty("拼团id")
    private Long id;

    @ApiModelProperty("商品名称")
    private String goodsName;

    @ApiModelProperty("商品id")
    private Long goodsId;

    @ApiModelProperty("商品图片")
    private String goodsPicUrl;

    @ApiModelProperty("商品价格")
    private BigDecimal goodsPrice;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("开奖时间")
    private Date drawTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("活动结束时间")
    private Date endTime;

    @ApiModelProperty("参与人数")
    private Integer joinCount;

    @ApiModelProperty(value = "开奖状态  1待开奖/2进行中/3已结束")
    private Integer lotteryStatus;

    @ApiModelProperty(value = "是否参与")
    private  Boolean joinFlag;

    @ApiModelProperty(value = "期数")
    private Integer periods;
}
